package com.pactera.madp.cp.api.feign;


import com.pactera.madp.common.core.constant.SecurityConstants;
import com.pactera.madp.common.core.constant.ServiceNameConstants;
import com.pactera.madp.common.core.util.R;
import com.pactera.madp.cp.api.dto.emp.EmployeeDoCreateDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteEmployeeDoService",value = ServiceNameConstants.QUARTZ_SERVICE)
public interface RemoteEmployeeDoService {

    @PostMapping("/sys-job/remote")
    @ApiOperation(value = "新增待办定时任务")
    R<Boolean> save(@RequestBody EmployeeDoCreateDTO dto, @RequestHeader(SecurityConstants.FROM) String from);


}
